﻿#-*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Name:        and, or, not
# Purpose:
# Author:      SUMMVING
# Created:     2013/08/13  21:10
# Copyright:   (c) SUMMVING 2013
# Licence:     GPLv3
#-------------------------------------------------------------------------------

a = 23
b = 45
if a>20 and b>40:          #当两个条件同时满足，则为真，执行下面的语句
    print "it is true"

if a>20 or b>50:
   print "ok"

if not a>30:
   print "it's not ok"

print not 0               #输出为True
print not 2               #输出为False

print 3 or 1              #输出3
print 6 and 3             #输出3
print 4 and 10            #输出10，应该是以后面的为标准and


